Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

capital-case

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capital-case

Transform into a space separated string with each word capitalized

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.3M
increased by8.63%
Maintainers
1
Weekly downloads
 
Created

What is capital-case?

The capital-case npm package is used to convert strings into capital case where the first letter of each word is capitalized and spaces are preserved between words. It is particularly useful for formatting text to be more readable or to adhere to stylistic guidelines where capital case is required.

What are capital-case's main functionalities?

Convert string to capital case

This feature allows you to convert any lowercase or mixed case string into capital case, where each word starts with a capital letter and all other letters are lower case.

const { capitalCase } = require('capital-case');

const result = capitalCase('string to convert');
console.log(result); // 'String To Convert'

Other packages similar to capital-case

Keywords

FAQs

Package last updated on 02 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc